using System;
using System.Collections.Generic;
using System.Text;

using Northwind.Domain.Entities;
using NUnit.Framework;

namespace Northwind.Domain.Tests.Custom
{
    [TestFixture]
    public class OrderFixture
    {
        [Test]
        public void VerifyCustomerCount()
        { 
        
        }

        [Test]
        public void VerifyNotNullShippedDate()
        {
            Order obj = Order.Broker.GetByID(10992);

            string message = "Order#10992 should not have a null shippeddate.";
            Assert.IsNotNull(obj.ShippedDate,message);
            Assert.IsTrue(obj.ShippedDate.HasValue,message);
        }

        [Test]
        public void VerifyNullShippedDate()
        {
            Order obj = Order.Broker.GetByID(11039);

            string message = "Order#11039 should have a null shippeddate.";
            Assert.IsNull(obj.ShippedDate,message);
            Assert.IsFalse(obj.ShippedDate.HasValue, message);
        }

        [Test]
        public void VerifyCustomerName()
        {
            Order obj = Order.Broker.GetByID(10248);
            Assert.AreEqual("Paul Henriot", obj.Customer.ContactName);
        }
    }
}
